package com.apimanage.gateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 网关认证配置属性类
 * 用于读取和封装网关认证相关的配置属性
 */
@Component
@ConfigurationProperties(prefix = "gateway.auth")
public class GatewayAuthProperties {

    /**
     * 认证白名单路径列表
     */
    private List<String> whitelist;
    
    /**
     * 内部服务地址配置
     */
    private Map<String, String> internalService;

    // getter和setter方法
    public List<String> getWhitelist() {
        return whitelist;
    }

    public void setWhitelist(List<String> whitelist) {
        this.whitelist = whitelist;
    }
    
    public Map<String, String> getInternalService() {
        return internalService;
    }
    
    public void setInternalService(Map<String, String> internalService) {
        this.internalService = internalService;
    }
}